<div class="search byname">
	<span>请输入要检索的姓名：</span><input class="search_input" type="text" name="byname"/><button style="margin-top:-10px;" class="btn btn-primary" id="submit_search">检索</button>
</div>
<hr>
<div id="byname_result"></div>
<script>
	var byname=new PureAjax();
	var submit=document.getElementById("submit_search"); 
	var name=document.getElementsByName("byname")[0];
	var URL=document.getElementById("pageURL").value;
	name.focus();
	submit.onclick=function(){
		byname.post({
			dataType:"html",
			async:true,
			data:{getname:name.value},
			url:URL+"Search/byname",
			success:function(data){
				byname.dealJSinHTML(data,"byname_result");
			}
		});
	}
</script>